#ifndef __FILE_PARSER_HH__
#define __FILE_PARSER_HH__

class FileParser
{
  public:
    FileParser(const char* fileName, const OutputStream& output);
    ~FileParser();
    void run();
    
  private:
    void defaultInit();
    int getToken();

  private:
    char* _fileName;
    char* _buf;
    char* _index;
    char* _beginOfLine;
    long _lineNum;
    OutputStream _output;
    int _curToken;
};

#endif
